package com.book_management.response;

import com.book_management.component.ErrorCode;

/**
 * @ClassName DataResponse
 * @Description TODO
 * @Author XiangQian
 * @Date 2022/7/7 17:31
 */
public class DataResponse <T> extends BaseResponse{

    public DataResponse(){}
    /**
     *
     * 数据结果
     */
    private T data;
    public DataResponse(T data) {
        super();
        this.data = data;
    }
    public DataResponse(ErrorCode errorCode, T data) {
        super(errorCode);
        this.data = data;
    }
}